-- Level 1 Puzzle 1
-- The three crystals

Puzzle1_Trigger1 = {}
Puzzle1_Trigger2 = {}
Puzzle1_Trigger3 = {}

Puzzle1_Trigger1["Trigger_OnInside"] = function(actor)
	print("Range - Crystal 1")
	if PulmoController:useKeyPressed() == true then
		SceneMgr:getEntity("TestCrystal"):setVisible(false)
	end
end
Puzzle1_Trigger1["Trigger_OnExit"] = function(actor)
	SceneMgr:getEntity("TestCrystal"):setVisible(true)
end

Puzzle1_Trigger2["Trigger_OnInside"] = function(actor)
	print("Range - Crystal 2")
	assert(actor, "null")
	if PulmoController:useKeyPressed() == true then
		actor:getEntity():setVisible(false)
	end
end
Puzzle1_Trigger2["Trigger_OnExit"] = function(actor)
	assert(actor, "null")
	actor:getEntity():setVisible(true)
end

Puzzle1_Trigger3["Trigger_OnInside"] = function(actor)
	print("Range - Crystal 3")
	--HELLO!!!!!--SceneMgr:getEntity("TestCrystal2"):setMaterial(actor:getEntity():getSubEntity(0):getMaterial())
end
Puzzle1_Trigger3["Trigger_OnExit"] = function(actor)

end
